import { AxiosRequestConfig } from 'axios'
import serverApiUtils from '@/core/utils/serverApiUtils'
import lodash from 'lodash'
import { R } from '@/components/axios/interface'
import http from '@/components/axios/http'
import PageResponse from '@/core/framework/types/model/response/PageResponse'
import BaseAdminServerApi from '@/core/framework/serverapi/BaseAdminServerApi'
import Oauth2AuthorizationResponse from '@/core/oauth2/generated/types/model/response/Oauth2AuthorizationResponse'
import oauth2AdminApiConfig from '@/core/oauth2/generated/apiconfig/oauth2AdminApiConfig'

const moduleApiConfig = oauth2AdminApiConfig.oauth2Authorization

class Oauth2AuthorizationAdminServerApi extends BaseAdminServerApi<string, Oauth2AuthorizationResponse> {}

const adminServerApi = new Oauth2AuthorizationAdminServerApi({ adminApiConfig: moduleApiConfig })

export default adminServerApi
